/**
 * @author gaopeng
 * @date 2019/12/19 9:54 下午
 */
public class StopState extends IState {
    @Override
    public void open() {
        super.context.setState(Context.OPEN_STATE);
        super.context.getState().open();
    }

    @Override
    public void close() {

    }

    @Override
    public void run() {
        super.context.setState(Context.RUN_STATE);
        super.context.getState().run();
    }

    @Override
    public void stop() {
        System.out.println("停止运行。");
    }
}
